// class => 此类包含注册的用户信息属性
interface ISecurityItem {
  question: string
  answer: string
}

export interface RuleForm {
  username: string,
  password: string,
  ensurePassword: string,
  faceBase: string,
  phone: string,
  security: string,
  avatar: string | ArrayBuffer
}

export class Register {
  username: string = '';
  password: string = '';
  ensurePassword: string = '';
  faceBase: string = '';
  phone: string = '';
  security: string = '';
  avatar: string | ArrayBuffer;
  constructor(
    username: string, 
    password: string, 
    ensurePassword: string, 
    faceBase: string,
    phone: string,
    security: string,
    avatar: string | ArrayBuffer
  ) {
        this.username = username;
        this.password = password;
        this.ensurePassword = ensurePassword;
        this.faceBase = faceBase;
        this.phone = phone;
        this.security = security;
        this.avatar = avatar;
    }
}